package cn.edu.zut.dao;

import cn.edu.zut.model.Book;
import cn.edu.zut.model.BorrowBook;
import cn.edu.zut.model.Reader;
import org.mybatis.spring.annotation.MapperScan;
import java.util.List;

@MapperScan
public interface BorrowBookDao{
    int insertBorrowerInfo(BorrowBook borrowBook);
    int deleteBorrowInfo(BorrowBook borrowBook);
    int updateBorrowInfo(BorrowBook borrowBook);
    //根据bookid修改借阅表状态
    int updateBorrowByBookId(BorrowBook borrowBook);
    int updateBorrowFlag(BorrowBook borrowBook);
    Reader selectReaderByReaderId(String readerId);
    List<Book> selectBooksByReaderId(String readerId);
    List<BorrowBook> selectBorrowBookInfo(String readerId);

}
